package com.mzj.saas.mservice.bill.repository;

import com.mzj.saas.mservice.bill.entity.HouseExpenseHouse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface HouseExpenseHouseRepository extends PagingAndSortingRepository<HouseExpenseHouse, Long>, JpaSpecificationExecutor<HouseExpenseHouse>, JpaRepository<HouseExpenseHouse,Long> {
    HouseExpenseHouse findByHouseIdAndExpenseId(String houseId,String expenseId);

    List<HouseExpenseHouse> findByHouseId(String houseId);

    List<HouseExpenseHouse> findByExpenseId(String expenseId);

}
